package com.sc.pojo;

import java.io.Serializable;

public class Trolemenu implements Serializable {
    private Integer id;

    private Integer roleid;

    private Integer menuid;

    private Tmenu menu;

    public Trolemenu() {
    }

    public Trolemenu(Integer id, Integer roleid, Integer menuid, Tmenu menu) {
        this.id = id;
        this.roleid = roleid;
        this.menuid = menuid;
        this.menu = menu;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public Integer getMenuid() {
        return menuid;
    }

    public void setMenuid(Integer menuid) {
        this.menuid = menuid;
    }

    public Tmenu getMenu() {
        return menu;
    }

    public void setMenu(Tmenu menu) {
        this.menu = menu;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roleid=").append(roleid);
        sb.append(", menuid=").append(menuid);
        sb.append("]");
        return sb.toString();
    }
}